<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
      const p = Promise.reject('10')
      const pp = Promise.resolve(p)
      console.log(p === pp);
      console.log(pp);
      new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve('yse')
        }, 2000)
      }).then(res => {
        console.log(res);
        throw new Error('999')
      }).then(res => {
        console.log('99');
      }).catch(err => {
        console.log(err);
      })
    </script>
</body>

</html>